package cn.jiyun.pojoday12;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: 小周
 * @Package: cn.jiyun.pojoday12
 * @Project: p11_parent
 * @name: Compet
 * @Date: 2023/8/9 11:21
 * @Filename: Compet
 */
@Data
@TableName(value = "compet")
public class Compet  implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String cname;
    private String depts;
    @TableField(value = "dept_status")
    private String deptStatus;
    @TableField(value = "dept_way")
    private String deptWay;
    private Integer allman;
    private Integer numman;
    private String starts;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date starttime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date endtime;
    private String persons;
    private String sorts;
    private String status;
    private String photo;
    private String haibao;
    private String lids;
}
